package com.zhu.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhu.annotate.Dict;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaozhu
 * @since 2022-08-22
 */
@TableName("sys_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User extends Base implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid", type = IdType.AUTO)
    @ExcelProperty("用户id")
    private Long uid;

    @ExcelProperty("用户名")
    private String username;

    private String password;

    @ExcelProperty("头像")
    private String head;

    @Dict(code = "user_gender")
    @ExcelProperty("性别")
    private Integer sex;

    @ExcelProperty("联系方式")
    private String phone;

    @ExcelProperty("电子邮箱")
    private String email;

    @Dict(code = "user_status")
    @ExcelProperty("状态")
    private Integer status;

    @TableField("deptId")
    private Long deptId;

    @ExcelProperty("岗位")
    private String post;

    @TableField(value = "roleId")
    @ExcelProperty("角色")
    private Long roleId;

}
